<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="constants.SystemConstants"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>创新与管理国际学术会议-论文管理系统</title>

<!-- CSS -->
<link href="<%=request.getContextPath()%>/style/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath()%>/style/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath()%>/style/ie7.css" /><![endif]-->

<link href="<%=request.getContextPath()%>/style/base/jquery-ui.css" rel="stylesheet" type="text/css"/>

<!-- JavaScripts-->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jNice.js"></script>

<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.ui.datepicker.js"></script>

</head>

<body>
	<div id="wrapper">
    	<!-- 导航 -->
		<s:include value="../header.jsp">
			<s:param name="channel" value="4"/>
		</s:include>
        
        <div id="containerHolder">
			<div id="container">
				<!-- 左边菜单 -->
        		<s:include value="menu.jsp">
        			<s:param name="item" value="2"/>
        		</s:include>
                
                <!-- h2 stays for breadcrumbs -->
                <h2>个人信息 &raquo; <span class="active">修改信息 </span></h2>

                <div id="main">
                   	

                	<form action="modify.action" id="submitForm" class="jNice" method="post" onsubmit="$('#submitForm').valid()">
						<h3>修改信息</h3>
                    	<fieldset>
                        	<p><label>用户名:</label><s:property value="#session.USER_INFO.username" /></p>
                        	<p><label>中文姓名:</label><input type="text" class="text-long" name="chineseName" value="<s:property value="#session.USER_INFO.chineseName" />" /></p>
                            <p><label>英文姓名:</label><input type="text" class="text-long" name="englishName" value="<s:property value="#session.USER_INFO.englishName" />" /></p>
                        	<p><label>性别:</label>
                        		<label><input type="radio" name="gender" value="<%=entity.User.GENDER_MALE %>" <s:if test="#session.USER_INFO.gender==0">checked</s:if> />男</label>
                        		<label><input type="radio" name="gender" value="<%=entity.User.GENDER_FEMALE %>" <s:if test="#session.USER_INFO.gender==1">checked</s:if> />女</label>
                        	</p>
                        	<p><label>出生年月:</label><input type="text" class="text-long" name="birthday" id="birthday" value="<s:date name="#session.USER_INFO.birthday" format="yyyy-MM-dd" />" /></p>
                        	<p><label>职务:</label><input type="text" class="text-long" name="job" value="<s:property value="#session.USER_INFO.job" />" /></p>
                        	<p><label>工作单位:</label><input type="text" class="text-long" name="workplace" value="<s:property value="#session.USER_INFO.workplace" />" /></p>
                        	<p><label>常用邮箱:</label><input type="text" class="text-long" name="email" value="<s:property value="#session.USER_INFO.email" />" /></p>
                        	<p><label>联系电话:</label><input type="text" class="text-long" name="phone" value="<s:property value="#session.USER_INFO.phone" />" /></p>
                        	<p><label>邮政编码:</label><input type="text" class="text-long" name="zipCode" value="<s:property value="#session.USER_INFO.zipCode" />" /></p>
                        	<p><label>地址:</label><input type="text" class="text-long" name="address" value="<s:property value="#session.USER_INFO.address" />" /></p>
                        	
                        	<input type="submit" value="&nbsp;&nbsp;修&nbsp;&nbsp;改&nbsp;&nbsp;" />
                        </fieldset>

                    </form>
                </div>
                <!-- // #main -->
                
                <div class="clear"></div>
            </div>
            <!-- // #container -->
        </div>	
        <!-- // #containerHolder -->
        
        <s:include value="../footer.jsp" />
    </div>
    <!-- // #wrapper -->
    
    <script type="text/javascript">
		//应用日期选择插件
		$('#birthday').datepicker({
			changeYear: true,
			changeMonth: true,
			showMonthAfterYear: true,
			yearRange:'c-100:c',
			constrainInput: true,
			dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
			dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
			monthNames: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
			monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
			nextText: '下一月',
			prevText: '上一月',
			disabled: true,
			altFormat:'yyyy-MM-dd',
			dateFormat:'yy-MM-dd'
			
		});
		
    	
		$(document).ready(function()
	        {
	            //表单验证
	            $('#submitForm').validate({
	                rules: {
	                    chineseTitle: {
	                        maxlength: 50,
	                        required: true
	                    }
	                },
	                messages: {
	                	chineseTitle: {
	                        maxlength: '中文标题长度不能超过50字',
	                        required: '中文标题不能为空'
	                    }
	                }
	            });
	        });
	</script>

</body>

</html>